/*
*  camera calibration
*  stefanix - helloworld@stefnix.net
*/

#include <iostream>
#include <vector>


#include "ofMain.h"
#include "osCamerahandler.h"
#define OF_ADDON_USING_OFXOPENCV

                               
#include "ofxVectorMath/ofxVectorMath.h"
#include "pong.h"
#include "colorHandler.h"
#include "o_o.h"

class testApp : public ofSimpleApp{
  public:
	void setup();
	void update();
	void draw();
	void keyPressed( int key );
	void mouseMoved( int x, int y );
	void mouseDragged( int x, int y, int button );
	void mousePressed( int x, int y, int button );
	void mouseReleased();
	void startPongGame();
	void startOOGame();
	void pauseGame();
	void resumeGame();
	void resetGame();
	osCamerahandler camHandler;
	colorHandler colors;
	bool pause;
    CvSize csize;
	bool drawDebugBlobs;
	bool drawDebugMinMaxBlobs;
	osGame *Game;
 
	ofCvColorImage  bufferImage;
	ofImage  ofbufferImage;

	ofPoint debugBlob;
	int light;
	bool showgrid;
	bool shakeimage;
	int screenoffset;
	int screenoffsetoffset;
	int screenoffsetoffsetDirection;



};

